<?php
/*
 * @Author: 李志刚
 * @CopyRight: 2020-2030 衡水山木枝技术服务有限公司
 * @Date: 2021-10-19 10:42:43
 * @Description: 活动关联的商品
 * @LastEditors: 李志刚
 * @LastEditTime: 2021-10-19 18:20:00
 * @FilePath: /归档/expand/2021_10_19_104243_create_topic_good.php
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTopicGood extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('topic_goods', function (Blueprint $table) {
            $table->foreignId('topic_id')->comment('活动ID');
            $table->foreignId('good_id')->comment('商品ID');
            $table->integer('sort')->comment('排序');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('topic_goods');
    }
}
